package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 行程确认
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_user_stroke_confirm")
public class UserStrokeConfirm extends Model<UserStrokeConfirm> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "cid", type = IdType.ASSIGN_ID)
    private String cid;
    /**
     * 行程ID
     */
    @TableField("sid")
    private String sid;
    /**
     * 用户扫码时间
     */
    @TableField("scan_time")
    private LocalDateTime scanTime;
    /**
     * 方向:1进场 2离场
     */
    @TableField("direction")
    private Integer direction;
    /**
     * 确认时间
     */
    @TableField("confirm_time")
    private LocalDateTime confirmTime;
    /**
     * 门岗名称
     */
    @TableField("door_post_name")
    private String doorPostName;
    /**
     * 备注
     */
    @TableField("note")
    private String note;
    /**
     * 保安
     */
    @TableField("person_id")
    private String personId;
    /**
     * 停车场
     */
    @TableField("park_id")
    private String parkId;
    /**
     * 车牌
     */
    @TableField("plate_number")
    private String plateNumber;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 机构ID
     */
    @TableField("org_id")
    private String orgId;
    /**
     * 是否确认
     */
    @TableField("confirm")
    private String confirm;

    public void freeData() {
        this.cid = null;
        this.sid = null;
        this.scanTime = null;
        this.direction = null;
        this.confirmTime = null;
        this.doorPostName = null;
        this.note = null;
        this.personId = null;
        this.parkId = null;
        this.plateNumber = null;
        this.userId = null;
        this.orgId = null;
        this.confirm = null;
    }

}
